Jupyter at Bryn Mawr College |
|||
Public notebooks: /services/public/dblank / jupyter.cs / Examples |
from calico.widgets import GoogleChart
from calico.display import display
gc = GoogleChart("BarChart", keys=['Year', 'Sales', 'Expenses'],
data=[['2004', 1000, 400],
['2005', 1170, 460],
['2006', 660, 1120],
['2007', 1030, 540]],
title='Company Performance',
vAxis={"title": 'Year', "titleTextStyle": {"color": 'red'}})
display(gc)
gc = GoogleChart("BarChart", data=
[['2004', 1000, 400],
['2005', 1170, 460],
['2006', 660, 1120],
['2007', 1030, 540]],
title='Company Performance',
vAxis={"title": 'Year', "titleTextStyle": {"color": 'red'}})
display(gc)
gc = GoogleChart("ScatterChart", data=
[[1000, 400],
[1170, 460],
[660, 1120],
[1030, 540]],
title='Company Performance',
vAxis={"title": 'Year', "titleTextStyle": {"color": 'red'}})
display(gc)
GoogleChart("Histogram", data=[6, 7, 8, 9, 3, 2, 6])
gc = GoogleChart("AreaChart", data=[6, 7, 8, 9, 3, 2, 6])
gc
gc = GoogleChart("ScatterChart", data=[6, 7, 8, 9, 3, 2, 6])
gc
GoogleChart("PieChart", data=[["Pie I have eaten", .33], ["Pie I have not yet eaten", .67]])
GoogleChart("LineChart", data=[6, 7, 8, 9, 3, 2, 6])
GoogleChart("ColumnChart", data=[6, 7, 8, 9, 3, 2, 6])
GoogleChart("BarChart", data=[6, 7, 8, 9, 3, 2, 6])